/**
 * @program: pettyloan
 * @ClassName PayTypeServiceImpl
 * @author: 汪江
 * @create: 2022-12-08 14:21
 **/
package com.wn.pettyloan.service.impl;

import com.wn.pettyloan.entity.PayType;
import com.wn.pettyloan.mapper.PayTypeMapper;
import com.wn.pettyloan.service.PayTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class PayTypeServiceImpl implements PayTypeService {
    @Resource
    private PayTypeMapper payTypeMapper;
    @Override
    public List<PayType> selAllPayType() {
        return payTypeMapper.selAllPayType();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return payTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PayType record) {
        return payTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(PayType record) {
        return payTypeMapper.insertSelective(record);
    }

    @Override
    public PayType selectByPrimaryKey(Long id) {
        return payTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PayType record) {
        return payTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PayType record) {
        return payTypeMapper.updateByPrimaryKey(record);
    }
}
